package com.cloud.Service;

import com.cloud.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("service-user")
public interface UserService {
    @GetMapping("User/getbyteamid/{teamId}")
    public List<UserDto> getUserByTeamId(@PathVariable("teamId") int teamId);

    @GetMapping("User/{id}")
    public UserDto getUserById(@PathVariable("id") int userId);

    @PostMapping(value = "User/accept")
    public UserDto accept(@RequestParam("userId") Integer userid,
                          @RequestParam("teamId") Integer teamid);

}


